<template>
  <!-- 发布车品 - 选择分类 -->
	<view class="u-wrap">
    <!-- 车辆信息 -->
    <view class="car-info-box flex">
      <view class="car">
        <image :src="carInfo.img" mode="widthFix" class="img"></image>
      </view>
      <view class="text-box">
        <view>{{ carInfo.name }}</view>
        <view class="font-24 color-999">VIN：{{ carInfo.vin }}</view>
      </view>
    </view>
    
		<view class="u-menu-wrap">
			<scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view">
				<view v-for="(item,index) in list" :key="index" :class="['u-tab-item', currentNum == index ? 'active' : '']" @tap.stop="setId(index)">
					<view class="u-tab-item-text" :id="'to' + index">
						<text class="u-line-1">{{item.goods_Type_Name}}</text>
					</view>
				</view>
			</scroll-view>
			<scroll-view :scroll-into-view="clickId" @scroll="scroll" :scroll-with-animation="true" :scroll-y="true">
				<view class="page-view">
					<view class="class-item" :id="'po' + index" v-for="(item , index) in list" :key="index">
						<view class="item-title flex flex-jc-c flex-ai-c">
							<view class="xiant"></view>
							<view class="xtname">{{item.goods_Type_Name}}</view>
							<view class="xiant"></view>
						</view>
						<view class="item-container">
							<view class="thumb-box" v-for="(item1, index1) in item.carGoodsTypeAndGoodsResponseChildList" :key="index1" @click="bussclick(item, item1)">
								<image class="item-menu-image" :src="item1.picture_Path" mode="aspectFit"></image>
								<view class="item-menu-name">{{item1.goods_Type_Name}}</view>
							</view>
						</view>
					</view>
				</view>
			</scroll-view>
		</view>
	</view>
</template>


<script src="./selectCategory.js"></script>
<style lang="scss" scoped>
	@import './selectCategory.scss';
</style>
